#include <DCMotor.h>

long now;
DCMotor motor(2,1,0);

void setup()
{ 
  Serial.begin(9600);
  
  motor.begin();
    
  now = millis();
  motor.forward();
  while(millis() - now < 1000);
  motor.left();
  motor.forward();
  now = millis();
  while(millis() - now < 1000);
  motor.right();
  motor.forward();
  now = millis();
  while(millis() - now < 1000);
  motor.stop();
}

void loop() {}
